

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/layout/template.xhtml">

	<ui:define name="content">

		<f:view>


			<h:form id="team_form_id">

				<h1>
					<h:outputText value="#{global.analyzer_form_title}" />
				</h1>
				<h2>
					<h:outputText value="#{analyzerMB.analyzer.name}" />
				</h2>

				<!-- **** General info ***** -->
				<rich:tabPanel switchType="ajax">
					<rich:tab header="#{global.analyzer_settings}" id="tab1">

						<dl>

							<dt>
								<h:outputLabel for="subject_id" value="#{global.analyzer_name}:">
									<h:message style="color: red" for="subject_id"
										showSummary="true" showDetail="true" />
								</h:outputLabel>
							</dt>
							<dd>
								<h:inputText style="width: 300px;" required="true"
									value="#{analyzerMB.analyzer.name}" id="subject_id">
								</h:inputText>
							</dd>




							<dt>
								<h:outputLabel value="#{global.analyzer_log}:" />
							</dt>
							<dd>
								<h:selectOneMenu value="#{analyzerMB.accessLogId}">
									<f:selectItems value="#{analyzerMB.accessLogSelection}" />
								</h:selectOneMenu>
							</dd>



							<dt>
								<h:outputLabel value="#{global.analyzer_timerange}:" />
							</dt>
							<dd>

								<a4j:outputPanel id="timerange_area_id">
									<h:selectOneMenu value="#{analyzerMB.timeRange}">
										<f:selectItems value="#{analyzerMB.timeRangeSelection}" />
										<f:ajax render="timerange_area_id"></f:ajax>
									</h:selectOneMenu>
									<a4j:outputPanel rendered="#{analyzerMB.timeRange eq '0'}">
										<rich:calendar value="#{analyzerMB.analyzer.timeFrom}"/>
										 - <rich:calendar  value="#{analyzerMB.analyzer.timeTo}"/>
									</a4j:outputPanel>

								</a4j:outputPanel>
							</dd>



							<dt>
								<h:outputLabel value="#{global.analyzer_filter}:" />
							</dt>
							<dd>
								<h:inputTextarea required="false"
									style="height: 40px; width: 400px;"
									value="#{analyzerMB.analyzer.filter}">
								</h:inputTextarea>
							</dd>


							<dt>
								<h:outputLabel value="#{global.analyzer_exclude}:" />
							</dt>
							<dd>

								<h:inputTextarea required="false"
									style="height: 40px; width: 400px;"
									value="#{analyzerMB.analyzer.exclude}">
								</h:inputTextarea>
							</dd>

							<dt>
								<h:outputLabel value="#{global.analyzer_domains}:" />
							</dt>
							<dd>

								<h:inputTextarea required="false"
									style="height: 40px; width: 400px;"
									value="#{analyzerMB.analyzer.domains}">
								</h:inputTextarea>
							</dd>
						</dl>

					</rich:tab>


					<rich:tab header="#{global.analyzer_trend}">
						<ui:include src="analyzer_sub_trend.xhtml" />
					</rich:tab>

					<rich:tab header="#{global.analyzer_totalhits}">

						<ui:include src="analyzer_sub_totalhits.xhtml" />

					</rich:tab>


					<rich:tab header="#{global.analyzer_referrers}" disabled="#{! analyzerMB.referrerSupported}">
						<ui:include src="analyzer_sub_referrer.xhtml" />
					</rich:tab>


					<rich:tab header="#{global.analyzer_clients}" disabled="#{! analyzerMB.useragentSupported}">
						<ui:include src="analyzer_sub_client.xhtml" />
					</rich:tab>

					<rich:tab header="#{global.analyzer_errors}">
						<ui:include src="analyzer_sub_errors.xhtml" />
					</rich:tab>
				</rich:tabPanel>

				<h:commandButton actionListener="#{analyzerMB.doSave}"
					action="/pages/analyzerlist" value="#{global.save}">
				</h:commandButton>


				<h:commandButton value="#{global.close}"
					action="/pages/analyzerlist" />






			</h:form>
		</f:view>
	</ui:define>



</ui:composition>
